/*
 * @Author: 徐建辰
 * @Date: 2022-02-16 09:07:23
 * @LastEditTime: 2022-02-16 09:08:55
 * @LastEditors: 徐建辰
 * @Description: 二次封装vue-router，方便统一使用
 */
import {useRoute, useRouter} from 'vue-router'

export default function useWithRouter() {
  const route = useRoute()
  const router = useRouter()

  return {route, router}
}